using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GeYiHome.Domain.Entities;

namespace GeYiHome.Db.DbMapping
{
   public class ProductConfiguration:EntityBaseTypeConfiguration<ProductEntity>
    {
        public ProductConfiguration()
        {
            ToTable("t_product");
            HasKey(x => x.Id);
            Property(x => x.CategoryName).HasColumnName("category_name").HasMaxLength(100);
            Property(x => x.DisplayName).HasColumnName("display_name").HasMaxLength(100);
            Property(x => x.Inventory).HasColumnName("inventory");
            Property(x => x.Production).HasColumnName("production").HasMaxLength(200);
        }
    }
}
